home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 7: Sunsite / Linux Cubed Series 7 - Sunsite Vol 1.iso / system / news / readers / skim-0.8 / skim-0 / skim-0.8.4 / NNTPStream.h < prev    next >
C/C++ Source or Header  |  1996-02-18  |  2KB  |  49 lines

  1. /*
  2.  * NAME
  3.  *   NNTPStream.h
  4.  * COPYRIGHT
  5.  *   Skim - Off-line news reading package optimized for slow lines.
  6.  *   Copyright (C) 1996  Rene W.J. Pijlman
  7.  *
  8.  *   This program is free software; you can redistribute it and/or modify
  9.  *   it under the terms of the GNU General Public License as published by
  10.  *   the Free Software Foundation; either version 2 of the License, or
  11.  *   (at your option) any later version.
  12.  * 
  13.  *   This program is distributed in the hope that it will be useful,
  14.  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
  15.  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  16.  *   GNU General Public License for more details.
  17.  * 
  18.  *   You should have received a copy of the GNU General Public License
  19.  *   along with this program; if not, write to the Free Software
  20.  *   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  21.  * VERSION
  22.  *   Skim version 0.8.4.
  23.  *   $Header: /home/rene/sys/CVS_MasterSourceRepository/skim/NNTPStream.h,v 1.3 1996/02/16 23:10:49 rene Exp $
  24.  */
  25.  
  26. #ifndef _NNTPSTREAM_H_
  27. #define _NNTPSTREAM_H_
  28.  
  29. #include "Types.h"
  30. #include "VarBuf.h"
  31. #include "StandardIO.h"
  32.  
  33. StandardIO NNTPStreamOpen( void );
  34. void NNTPStreamClose( StandardIO );
  35.  
  36. typedef void (*ConversionFunction)( VarBuf Line );
  37. typedef void (*OutputFunction)( VarBuf Line );
  38.  
  39. void GetTextResponse( StandardIO, ConversionFunction,
  40.                       VarBuf, StandardIO, OutputFunction );
  41.  
  42. #define TERMINATE_ON_ERROR        True
  43. #define DONT_TERMINATE_ON_ERROR   False
  44.  
  45. Boolean CheckStatusResponse(
  46.     StandardIO, const char *, const char *, const char *, Boolean );
  47.  
  48. #endif  /* _NNTPSTREAM_H_ */
  49.